@echo off
chcp 65001 >nul

echo === MQ学习项目 - 消息队列服务启动 ===
echo.

echo 正在启动消息队列服务...
docker-compose -f docker-compose-basic.yml up -d

echo.
echo 等待服务启动完成...
timeout /t 10 /nobreak >nul

echo.
echo === 服务状态检查 ===
docker-compose -f docker-compose-basic.yml ps

echo.
echo === 服务访问地址 ===
echo RabbitMQ Management: http://localhost:15672 (admin/admin123)
echo ActiveMQ Management: http://localhost:8161 (admin/admin123)
echo Pulsar Management: http://localhost:8080
echo.
echo === 连接信息 ===
echo RabbitMQ: localhost:5672
echo Kafka: localhost:9092
echo RocketMQ NameServer: localhost:9876
echo ActiveMQ: localhost:61616
echo Pulsar: localhost:6650
echo.
echo === 停止服务 ===
echo 运行 'docker-compose -f docker-compose-basic.yml down' 停止所有服务
echo.

pause
